package com.ruoyi.second.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 小区列表对象 community
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
public class Community extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 小区ID */
    private Long id;

    /** 所在城市ID */
    @Excel(name = "所在城市ID")
    private Long cityId;

    /** 小区名称 */
    @Excel(name = "小区名称")
    private String name;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 建造年份 */
    @Excel(name = "建造年份")
    private Long buildYear;

    /** 物业类型 */
    @Excel(name = "物业类型")
    private Long propertyType;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCityId(Long cityId) 
    {
        this.cityId = cityId;
    }

    public Long getCityId() 
    {
        return cityId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setBuildYear(Long buildYear) 
    {
        this.buildYear = buildYear;
    }

    public Long getBuildYear() 
    {
        return buildYear;
    }

    public void setPropertyType(Long propertyType) 
    {
        this.propertyType = propertyType;
    }

    public Long getPropertyType() 
    {
        return propertyType;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cityId", getCityId())
            .append("name", getName())
            .append("address", getAddress())
            .append("buildYear", getBuildYear())
            .append("propertyType", getPropertyType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
